import request from '@/utils/request'

// 查询充电分析列表
export function listCdrecord(scharging_date,csName) {
  return request({
    url: '/system/cdrecord/export',
    method: 'get',
    params: {scharging_date,csName}
  })
}

// 查询充电分析详细
export function getCdrecord(recordId) {
  return request({
    url: '/system/cdrecord/' + recordId,
    method: 'get'
  })
}

// 新增充电分析
export function addCdrecord(data) {
  return request({
    url: '/system/cdrecord',
    method: 'post',
    data: data
  })
}

// 修改充电分析
export function updateCdrecord(data) {
  return request({
    url: '/system/cdrecord',
    method: 'put',
    data: data
  })
}

// 删除充电分析
export function delCdrecord(recordId) {
  return request({
    url: '/system/cdrecord/' + recordId,
    method: 'delete'
  })
}
